package com.lian.hope.service;

import com.lian.hope.model.dto.VolunteerActivitiesDTO;
import com.lian.hope.model.vo.PageBean;
import com.lian.hope.model.vo.VolunteerActivitiesVO;

import java.util.List;

public interface VolunteerActivitiesService {
    /**
     * 分页获取志愿者活动
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageBean<VolunteerActivitiesVO> listVolunteerActivities(Integer pageNum, Integer pageSize);

    /**
     * 随机获取五个活动
     *
     * @return
     */
    List<VolunteerActivitiesVO> getRandomVolunteerActivities();

    /**
     * 新增志愿者活动
     * @param volunteerActivitiesDTO
     */
    void insertVolunteerActivities(VolunteerActivitiesDTO volunteerActivitiesDTO);


    void deleteVolunteerRegister(Long activityId, Long userId);

    VolunteerActivitiesVO getVolunteerActivitiesDetailById(Long activityId);

    void insertVolunteerRegister(Long activityId, Long userId);

}
